import requestService from '@/services/requestService';
export interface loginReqVO {
    imgCode: string; // 图形验证码
    password: string; // 用户密码
    randomCode: string; // 获取图形验证码返回的随机码
    tenantId: string; // 1系统用户，2金融机构用户
    userAccount: string; // 用户账号
}

type result = any;

// 获取图形码
export const getImageCaptcha = () => {
    return requestService<any, result>('/sysuser/login/getImageCaptcha', undefined, {
        method: 'GET',
    });
};

// // 登录接口
export const pwdLogin = (params: loginReqVO) => {
    return requestService<loginReqVO, result>('/sysuser/login/pwdLogin', params);
};
